package com.pandora.tv.Info;

import java.util.HashMap;

public class CacheApplicationInfo extends HashMap<String, ApplicationInfo> {	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CacheApplicationInfo() { 
		
		//mCacheApplication = new HashMap<String, ApplicationInfo>(50);
	}
	
	public void put(ApplicationInfo info) {
		if ( info instanceof ApplicationInfo )
			this.put(((ApplicationInfo) info).getComponentName().getClassName(), info);
	}
	
	public boolean isContains(ApplicationInfo info) {
		if ( containsKey(info.getComponentName().getClassName()))
			return true;
		
		return false;
	}
	
	public boolean isContains(String key) {
		if ( containsKey(key))
			return true;
		
		return false;
	}

}
